package cn.wolfcode.transfer.mapper;

import cn.wolfcode.transfer.domain.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    List<Permission> selectByRoleId(@Param("role_id") Long id);

    int updateByPrimaryKey(Permission record);

    List<String> selectAllExpression();

    void insert(@Param("id") Long id , @Param("name") String name, @Param("expression") String expression);

    List<String> selectByEmployeeId(Long id);

    void deleteAll();
}